package com.hirisun.faces.components;

import javax.faces.event.AbortProcessingException;
import javax.faces.event.ActionEvent;
import javax.faces.event.ActionListener;

public class ProcessButtonActionListener implements ActionListener {

	public void processAction(ActionEvent actionEvent)
			throws AbortProcessingException {
		System.out.println("OK Listener.");
		
		ProcessButton button = (ProcessButton) actionEvent.getComponent();
		ProcessForm processForm = button.getProcessForm();
		
		processForm.executeCommand("OK");
	}

}
